package com.enjoyor.soa.traffic.server.tsms;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Import;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

 
import com.enjoyor.soa.traffic.frame.configure.AopConfig;
import com.enjoyor.soa.traffic.frame.configure.DubboConfig;
import com.enjoyor.soa.traffic.frame.configure.ExceptionConfig;
import com.enjoyor.soa.traffic.frame.configure.LoggerConfig;
import com.enjoyor.soa.traffic.frame.configure.MyBatisConfig;
import com.enjoyor.soa.traffic.frame.configure.UtilConfig;

@SpringBootApplication
@EnableTransactionManagement
@EnableScheduling
@ComponentScan(basePackages = { "com.enjoyor.soa.traffic.core.tsms", "com.enjoyor.soa.traffic.server.tsms.dubbo" })
@Import({ AopConfig.class, ExceptionConfig.class, MyBatisConfig.class, 
		UtilConfig.class, LoggerConfig.class, DubboConfig.class })
public class TsmsServerApplication {
	public static ConfigurableApplicationContext context;	
	public static void main(String[] args) {
		context=SpringApplication.run(TsmsServerApplication.class, args);
		System.out.println("ddddd");
	}
}
